<?php

namespace backend\base;

use common\base\BaseController;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use yii\helpers\Url;

class BaseBackController extends BaseController
{
    public $systemFlag = 'dbl_backend';

	/**
	 * @inheritdoc
	 */
	public function behaviors()
	{
		return [
            'access' => [
                'class' => AccessControl::className(),
//                'except' => ['login', 'error', 'page', 'captcha', 'offline', 'signup', 'no-authority', 'request-password-reset', 'reset-password'],
                'rules' => [
                    [
                        'allow' => true,
                        'roles' => ['@'],
                    ],
                ],
            ],
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
//                    'logout' => ['post'],
                    'delete' => ['post'],
                ],
            ],
		];
	}


    public function beforeAction($action)
    {
        return parent::beforeAction($action);
    }

}